$badge-prefix-cls: "#{$css-prefix}badge";

.#{$badge-prefix-cls} {
  position: relative;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
  color: $text-color;
  &-count {
    position: absolute;
    transform: translateX(50%);
    top: $badge-count-top;
    right: $badge-count-right;
    height: $badge-count-height;
    border-radius: $badge-count-border-radius;
    min-width:$badge-count-min-width;
    background: $badge-count-background;
    border: $badge-count-border;
    color: $badge-count-color;
    line-height: $badge-count-line-height;
    text-align: center;
    padding: $badge-count-padding;
    font-size: $badge-count-font-size;
    white-space: nowrap;
    transform-origin: -10% center;
    z-index: 10;
    box-shadow:$badge-count-box-shadow;

    a,
    a:hover {
      color: $badge-a-hover-color;
    }

    &-alone {
      top: auto;
      display: block;
      position: relative;
      transform: translateX(0);
    }
  }

  &-dot {
    position: absolute;
    transform: translateX(-50%);
    transform-origin: 0 center;
    top: $badge-dot-top;
    right: $badge-dot-right;
    height: $badge-dot-height;
    width: $badge-dot-width;
    border-radius: $badge-dot-border-radius;
    background: $badge-dot-background;
    z-index: 10;
    box-shadow: $badge-dot-box-shadow;
  }
}
